#ifndef _HAL_SERIAL_H_
#define _HAL_SERIAL_H_

#ifdef __cplusplus
extern "C"
{
#endif

#define SBP_UART_PORT                  HAL_UART_PORT_0

//#define SBP_UART_FC                    TRUE
#define SBP_UART_FC                    FALSE
#define SBP_UART_FC_THRESHOLD          48
#define SBP_UART_RX_BUF_SIZE           128
#define SBP_UART_TX_BUF_SIZE           128
#define SBP_UART_IDLE_TIMEOUT          6
#define SBP_UART_INT_ENABLE            TRUE
#define SBP_UART_BR                    HAL_UART_BR_115200

// Serial Port Related
extern void Serial_Init(uint8 taskID);
extern int  Serial_Printf(char *fmt, ...);
extern void Serial_PrintBuffer(char *title, uint8 *pBuffer, uint16 length, uint8 display_char);

#ifdef __cplusplus
}
#endif

#endif
